/*! For license information please see segment.js.LICENSE.txt */ (()=>{var __webpack_modules__={79:(e,t,n)=>{"use strict";var r=n(1632),i=n(6143),o=Object.prototype.hasOwnProperty,a=Object.prototype.toString,s=function(e){return Boolean(e)&&"[object Object]"===a.call(e)},c=function(e,t,n,r){return o.call(t,r)&&void 0===e[r]&&(e[r]=n),t},u=function(e,t,n,r){return o.call(t,r)&&(s(e[r])&&s(n)?e[r]=d(e[r],n):void 0===e[r]&&(e[r]=n)),t},l=function(e,t){if(n=t,!Boolean(n)||"object"!=typeof n)return t;var n;e=e||c;for(var i=r(2,arguments),o=0;o{"use strict";var t=Math.max;e.exports=function(e,n){var r=n?n.length:0;if(!r)return[];for(var i=t(Number(e)||0,0),o=t(r-i,0),a=new Array(o),s=0;s{"use strict";var r=n(4193),i=Object.prototype.toString,o="function"==typeof Array.isArray?Array.isArray:function(e){return"[object Array]"===i.call(e)},a=function(e,t){for(var n=0;n{"use strict";var r=n(1284);e.exports=function(e,t){if("function"!=typeof e)throw new TypeError("`predicate` must be a function but was a "+typeof e);var n=!0;return r((function(t,r,i){if(!(n=!!e(t,r,i)))return!1}),t),n}},2322:(e,t,n)=>{"use strict";var r=n(1284);e.exports=function(e,t,n){if("function"!=typeof e)throw new TypeError("Expected a function but received a "+typeof e);return r((function(n,r,i){t=e(t,n,r,i)}),n),t}},7840:(e,t,n)=>{"use strict";var r=n(1284),i=String.prototype.indexOf;e.exports=function(e,t){var n=!1;return"string"==typeof t?-1!==i.call(t,e):(r((function(t){if((r=t)===(i=e)?0!==r||1/r==1/i:r!=r&&i!=i)return n=!0,!1;var r,i}),t),n)}},4193:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=String.prototype.charAt,r=Object.prototype.toString,i=function(e,t){return n.call(e,t)},o=function(e,n){return t.call(e,n)},a=function(e,t){t=t||o;for(var n=[],r=0,i=e.length;r{"use strict";var r=n(1284);e.exports=function(e,t){if("function"!=typeof e)throw new TypeError("Expected a function but received a "+typeof e);var n=[];return r((function(t,r,i){n.push(e(t,r,i))}),t),n}},6143:e=>{"use strict";var t=Math.max;e.exports=function(e){if(null==e||!e.length)return[];for(var n=new Array(t(e.length-2,0)),r=1;r{"use strict";function r(e,t){return new Promise((function(n,r){var i=setTimeout((function(){r(Error("Promise timed out"))}),t);e.then((function(e){return clearTimeout(i),n(e)})).catch(r)}))}function i(e,t,n){var i;return(i=n,new Promise((function(e){return setTimeout(e,i)}))).then((function(){return r(function(){try{return Promise.resolve(t(e))}catch(e){return Promise.reject(e)}}(),1e3)})).catch((function(t){null==e||e.log("warn","Callback Error",{error:t}),null==e||e.stats.increment("callback_error")})).then((function(){return e}))}n.d(t,{s2:()=>r,w_:()=>i})},9952:(e,t,n)=>{"use strict";n.d(t,{d:()=>c,j:()=>u});var r=n(6e3),i=n(3172),o=n(1635),a=function(){function e(){this._logs=[]}return e.prototype.log=function(e,t,n){var r=new Date;this._logs.push({level:e,message:t,time:r,extras:n})},Object.defineProperty(e.prototype,"logs",{get:function(){return this._logs},enumerable:!1,configurable:!0}),e.prototype.flush=function(){if(this.logs.length>1){var e=this._logs.reduce((function(e,t){var n,r,i,a=(0,o.Cl)((0,o.Cl)({},t),{json:JSON.stringify(t.extras,null," "),extras:t.extras});delete a.time;var s=null!==(i=null===(r=t.time)||void 0===r?void 0:r.toISOString())&&void 0!==i?i:"";return e[s]&&(s="".concat(s,"-").concat(Math.random())),(0,o.Cl)((0,o.Cl)({},e),((n={})[s]=a,n))}),{});console.table?console.table(e):console.log(e)}else this.logs.forEach((function(e){var t=e.level,n=e.message,r=e.extras;"info"===t||"debug"===t?console.log(n,null!=r?r:""):console[t](n,null!=r?r:"")}));this._logs=[]},e}(),s=n(6490),c=function(e){var t,n,r;this.retry=null===(t=e.retry)||void 0===t||t,this.type=null!==(n=e.type)&&void 0!==n?n:"plugin Error",this.reason=null!==(r=e.reason)&&void 0!==r?r:""},u=function(){function e(e,t,n,i){void 0===t&&(t=(0,r.v4)()),void 0===n&&(n=new s.r),void 0===i&&(i=new a),this.attempts=0,this.event=e,this._id=t,this.logger=i,this.stats=n}return e.system=function(){},e.prototype.isSame=function(e){return e.id===this.id},e.prototype.cancel=function(e){if(e)throw e;throw new c({reason:"Context Cancel"})},e.prototype.log=function(e,t,n){this.logger.log(e,t,n)},Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),e.prototype.updateEvent=function(e,t){var n;if("integrations"===e.split(".")[0]){var r=e.split(".")[1];if(!1===(null===(n=this.event.integrations)||void 0===n?void 0:n[r]))return this.event}return(0,i.J)(this.event,e,t),this.event},e.prototype.failedDelivery=function(){return this._failedDelivery},e.prototype.setFailedDelivery=function(e){this._failedDelivery=e},e.prototype.logs=function(){return this.logger.logs},e.prototype.flush=function(){this.logger.flush(),this.stats.flush()},e.prototype.toJSON=function(){return{id:this._id,event:this.event,logs:this.logger.logs,metrics:this.stats.metrics}},e}()},6115:(e,t,n)=>{"use strict";n.d(t,{g:()=>o,M:()=>a});var r=n(1635),i=n(2079),o="onRemoveFromFuture",a=function(e){function t(t,n,r){var i=e.call(this)||this;return i.future=[],i.maxAttempts=t,i.queue=n,i.seen=null!=r?r:{},i}return(0,r.C6)(t,e),t.prototype.push=function(){for(var e=this,t=[],n=0;ne.maxAttempts||e.includes(t)||(e.queue.push(t),0))}));return this.queue=this.queue.sort((function(t,n){return e.getAttempts(t)-e.getAttempts(n)})),r},t.prototype.pushWithBackoff=function(e,t){var n=this;if(void 0===t&&(t=0),0==t&&0===this.getAttempts(e))return this.push(e)[0];var r=this.updateAttempts(e);if(r>this.maxAttempts||this.includes(e))return!1;var i=function(e){var t=Math.random()+1,n=e.minTimeout,r=void 0===n?500:n,i=e.factor,o=void 0===i?2:i,a=e.attempt,s=e.maxTimeout,c=void 0===s?1/0:s;return Math.min(t*r*Math.pow(o,a),c)}({attempt:r-1});return t>0&&i{"use strict";n.d(t,{C:()=>o,D:()=>a});var r=n(1635),i=n(9952);function o(e,t){e.log("debug","plugin",{plugin:t.name});var n=(new Date).getTime(),o=t[e.event.type];return void 0===o?Promise.resolve(e):function(){return(0,r.sH)(this,void 0,void 0,(function(){var n;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,o.apply(t,[e])];case 1:return[2,r.sent()];case 2:return n=r.sent(),[2,Promise.reject(n)];case 3:return[2]}}))}))}().then((function(e){var r=(new Date).getTime()-n;return e.stats.gauge("plugin_time",r,["plugin:".concat(t.name)]),e})).catch((function(n){if(n instanceof i.d&&"middleware_cancellation"===n.type)throw n;return n instanceof i.d?(e.log("warn",n.type,{plugin:t.name,error:n}),n):(e.log("error","plugin Error",{plugin:t.name,error:n}),e.stats.increment("plugin_error",1,["plugin:".concat(t.name)]),n)}))}function a(e,t){return o(e,t).then((function(t){if(t instanceof i.j)return t;e.log("debug","Context canceled"),e.stats.increment("context_canceled"),e.cancel(t)}))}},6490:(e,t,n)=>{"use strict";n.d(t,{p:()=>i,r:()=>o});var r=n(1635),i=function(){function e(){this.metrics=[]}return e.prototype.increment=function(e,t,n){void 0===t&&(t=1),this.metrics.push({metric:e,value:t,tags:null!=n?n:[],type:"counter",timestamp:Date.now()})},e.prototype.gauge=function(e,t,n){this.metrics.push({metric:e,value:t,tags:null!=n?n:[],type:"gauge",timestamp:Date.now()})},e.prototype.flush=function(){var e=this.metrics.map((function(e){return(0,r.Cl)((0,r.Cl)({},e),{tags:e.tags.join(",")})}));console.table?console.table(e):console.log(e),this.metrics=[]},e.prototype.serialize=function(){return this.metrics.map((function(e){return{m:e.metric,v:e.value,t:e.tags,k:(t=e.type,{gauge:"g",counter:"c"}[t]),e:e.timestamp};var t}))},e}(),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.prototype.gauge=function(){for(var e=[],t=0;t{"use strict";function r(e){return"string"==typeof e}function i(e){return"number"==typeof e}function o(e){return"function"==typeof e}function a(e){return null!=e}function s(e){return"object"===Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}n.d(t,{Et:()=>i,Kg:()=>r,Qd:()=>s,Tn:()=>o,t2:()=>a})},6251:(e,t,n)=>{"use strict";n.d(t,{u:()=>r});var r=function(){var e,t,n=!1,r=new Promise((function(r,i){e=function(){for(var e=[],t=0;t{"use strict";n.d(t,{v:()=>r});var r=function(){function e(e){var t;this.callbacks={},this.warned=!1,this.maxListeners=null!==(t=null==e?void 0:e.maxListeners)&&void 0!==t?t:10}return e.prototype.warnIfPossibleMemoryLeak=function(e){this.warned||this.maxListeners&&this.callbacks[e].length>this.maxListeners&&(console.warn("Event Emitter: Possible memory leak detected; ".concat(String(e)," has exceeded ").concat(this.maxListeners," listeners.")),this.warned=!0)},e.prototype.on=function(e,t){return this.callbacks[e]?(this.callbacks[e].push(t),this.warnIfPossibleMemoryLeak(e)):this.callbacks[e]=[t],this},e.prototype.once=function(e,t){var n=this,r=function(){for(var i=[],o=0;o{"use strict";n.r(t),n.d(t,{form:()=>o,link:()=>i});var r=n(6556);function i(e,t,n,i){var o=this;return e?((e instanceof Element?[e]:"toArray"in e?e.toArray():e).forEach((function(e){e.addEventListener("click",(function(a){var s,c,u=t instanceof Function?t(e):t,l=n instanceof Function?n(e):n,d=e.getAttribute("href")||e.getAttributeNS("http://www.w3.org/1999/xlink","href")||e.getAttribute("xlink:href")||(null===(s=e.getElementsByTagName("a")[0])||void 0===s?void 0:s.getAttribute("href")),p=(0,r.s2)(o.track(u,l,null!=i?i:{}),null!==(c=o.settings.timeout)&&void 0!==c?c:500);(function(e,t){return!("_blank"!==e.target||!t)})(e,d)||function(e){var t=e;return!!(t.ctrlKey||t.shiftKey||t.metaKey||t.button&&1==t.button)}(a)||d&&(a.preventDefault?a.preventDefault():a.returnValue=!1,p.catch(console.error).then((function(){window.location.href=d})).catch(console.error))}),!1)})),this):this}function o(e,t,n,i){var o=this;return e?(e instanceof HTMLFormElement&&(e=[e]),e.forEach((function(e){if(!(e instanceof Element))throw new TypeError("Must pass HTMLElement to trackForm/trackSubmit.");var a=function(a){var s;a.preventDefault?a.preventDefault():a.returnValue=!1;var c=t instanceof Function?t(e):t,u=n instanceof Function?n(e):n;(0,r.s2)(o.track(c,u,null!=i?i:{}),null!==(s=o.settings.timeout)&&void 0!==s?s:500).catch(console.error).then((function(){e.submit()})).catch(console.error)},s=window.jQuery||window.Zepto;s?s(e).submit(a):e.addEventListener("submit",a,!1)})),this):this}},7718:(e,t,n)=>{"use strict";n.d(t,{a:()=>o,s:()=>i});var r=n(9839);function i(){return!(0,r.B)()||window.navigator.onLine}function o(){return!i()}},7947:(e,t,n)=>{"use strict";n.d(t,{a:()=>r});var r="api.segment.io/v1"},7977:(e,t,n)=>{"use strict";n.d(t,{o:()=>a});var r=n(1635),i=n(9952),o=n(4568),a=function(e){function t(t,n){return e.call(this,t,n,new o.U)||this}return(0,r.C6)(t,e),t.system=function(){return new this({type:"track",event:"system"})},t}(i.j)},9839:(e,t,n)=>{"use strict";function r(){return"undefined"!=typeof window}function i(){return!r()}n.d(t,{B:()=>r,S:()=>i})},5770:(e,t,n)=>{"use strict";function r(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}}n.d(t,{p:()=>r})},2552:(e,t,n)=>{"use strict";function r(e,t){return Object.keys(t).reduce((function(n,r){return r.startsWith(e)&&(n[r.substr(e.length)]=t[r]),n}),{})}n.r(t),n.d(t,{queryString:()=>a});var i=n(5770),o=n(2321);function a(e,t){var n=document.createElement("a");n.href=t;var a=n.search.slice(1).split("&").reduce((function(e,t){var n=t.split("="),r=n[0],o=n[1];return e[r]=(0,i.p)(o),e}),{}),s=[],c=a.ajs_uid,u=a.ajs_event,l=a.ajs_aid,d=(0,o.Qd)(e.options.useQueryString)?e.options.useQueryString:{},p=d.aid,f=void 0===p?/.+/:p,h=d.uid,v=void 0===h?/.+/:h;if(l){var y=Array.isArray(a.ajs_aid)?a.ajs_aid[0]:a.ajs_aid;f.test(y)&&e.setAnonymousId(y)}if(c){var m=Array.isArray(a.ajs_uid)?a.ajs_uid[0]:a.ajs_uid;if(v.test(m)){var g=r("ajs_trait_",a);s.push(e.identify(m,g))}}if(u){var _=Array.isArray(a.ajs_event)?a.ajs_event[0]:a.ajs_event,b=r("ajs_prop_",a);s.push(e.track(_,b))}return Promise.all(s)}},4568:(e,t,n)=>{"use strict";n.d(t,{U:()=>p});var r=n(1635),i=n(6490),o=n(524),a=n(8167),s=n(1298),c=n(7947);function u(e){console.error("Error sending segment performance metrics",e)}var l,d=function(){function e(e){var t,n,r,i,o,a=this;if(this.host=null!==(t=null==e?void 0:e.host)&&void 0!==t?t:c.a,this.sampleRate=null!==(n=null==e?void 0:e.sampleRate)&&void 0!==n?n:1,this.flushTimer=null!==(r=null==e?void 0:e.flushTimer)&&void 0!==r?r:3e4,this.maxQueueSize=null!==(i=null==e?void 0:e.maxQueueSize)&&void 0!==i?i:20,this.protocol=null!==(o=null==e?void 0:e.protocol)&&void 0!==o?o:"https",this.queue=[],this.sampleRate>0){var s=!1,l=function(){s||(s=!0,a.flush().catch(u),s=!1,setTimeout(l,a.flushTimer))};l()}}return e.prototype.increment=function(e,t){if(e.includes("analytics_js.")&&0!==t.length&&!(Math.random()>this.sampleRate||this.queue.length>=this.maxQueueSize)){var n=function(e,t,n){var i=t.reduce((function(e,t){var n=t.split(":"),r=n[0],i=n[1];return e[r]=i,e}),{});return{type:"Counter",metric:e,value:1,tags:(0,r.Cl)((0,r.Cl)({},i),{library:"analytics.js",library_version:"web"===n?"next-".concat(a.r):"npm:next-".concat(a.r)})}}(e,t,(0,s.X)());this.queue.push(n),e.includes("error")&&this.flush().catch(u)}},e.prototype.flush=function(){return(0,r.sH)(this,void 0,void 0,(function(){var e=this;return(0,r.YH)(this,(function(t){switch(t.label){case 0:return this.queue.length<=0?[2]:[4,this.send().catch((function(t){u(t),e.sampleRate=0}))];case 1:return t.sent(),[2]}}))}))},e.prototype.send=function(){return(0,r.sH)(this,void 0,void 0,(function(){var e,t,n;return(0,r.YH)(this,(function(r){return e={series:this.queue},this.queue=[],t={"Content-Type":"text/plain"},n="".concat(this.protocol,"://").concat(this.host,"/m"),[2,(0,o.h)(n,{headers:t,body:JSON.stringify(e),method:"POST"})]}))}))},e}(),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.initRemoteMetrics=function(e){l=new d(e)},t.prototype.increment=function(t,n,r){e.prototype.increment.call(this,t,n,r),null==l||l.increment(t,null!=r?r:[])},t}(i.p)},4757:(e,t,n)=>{"use strict";function r(e,t){var n=t.methodName,r=t.integrationName,i=t.type,o=t.didError,a=void 0!==o&&o;e.stats.increment("analytics_js.integration.invoke".concat(a?".error":""),1,["method:".concat(n),"integration_name:".concat(r),"type:".concat(i)])}n.d(t,{y:()=>r})},8167:(e,t,n)=>{"use strict";n.d(t,{r:()=>r});var r="1.74.0"},524:(e,t,n)=>{"use strict";function r(e,t){return t=t||{},new Promise((function(n,r){var i=new XMLHttpRequest,o=[],a=[],s={},c=function(){return{ok:2==(i.status/100|0),statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:c,headers:{keys:function(){return o},entries:function(){return a},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var u in i.open(t.method||"get",e,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){o.push(t=t.toLowerCase()),a.push([t,n]),s[t]=s[t]?s[t]+","+n:n})),n(c())},i.onerror=r,i.withCredentials="include"==t.credentials,t.headers)i.setRequestHeader(u,t.headers[u]);i.send(t.body||null)}))}n.d(t,{h:()=>o});var i=n(2453),o=function(){for(var e=[],t=0;t{"use strict";n.d(t,{m:()=>r});var r=function(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:null}},472:(e,t,n)=>{"use strict";n.d(t,{Ud:()=>a,kJ:()=>i,rY:()=>o});var r="analytics";function i(){return window[r]}function o(e){r=e}function a(e){window[r]=e}},9364:(e,t,n)=>{"use strict";function r(e,t){var n,r;return"boolean"==typeof(null==t?void 0:t.enabled)?t.enabled:null===(r=null===(n=null==e?void 0:e.__default)||void 0===n?void 0:n.enabled)||void 0===r||r}n.d(t,{j:()=>r})},3357:(e,t,n)=>{"use strict";function r(e){return Array.prototype.slice.call(window.document.querySelectorAll("script")).find((function(t){return t.src===e}))}function i(e,t){var n=r(e);if(void 0!==n){var i=null==n?void 0:n.getAttribute("status");if("loaded"===i)return Promise.resolve(n);if("loading"===i)return new Promise((function(e,t){n.addEventListener("load",(function(){return e(n)})),n.addEventListener("error",(function(e){return t(e)}))}))}return new Promise((function(n,r){var i,o=window.document.createElement("script");o.type="text/javascript",o.src=e,o.async=!0,o.setAttribute("status","loading");for(var a=0,s=Object.entries(null!=t?t:{});ao,k:()=>i})},1094:(e,t,n)=>{"use strict";n.d(t,{J:()=>i});var r=n(1635);function i(e,t){var n,i=Object.entries(null!==(n=t.integrations)&&void 0!==n?n:{}).reduce((function(e,t){var n,i,o=t[0],a=t[1];return"object"==typeof a?(0,r.Cl)((0,r.Cl)({},e),((n={})[o]=a,n)):(0,r.Cl)((0,r.Cl)({},e),((i={})[o]={},i))}),{});return Object.entries(e.integrations).reduce((function(e,t){var n,o=t[0],a=t[1];return(0,r.Cl)((0,r.Cl)({},e),((n={})[o]=(0,r.Cl)((0,r.Cl)({},a),i[o]),n))}),{})}},2613:(e,t,n)=>{"use strict";n.d(t,{_:()=>i});var r=n(1635),i=function(e,t){return(0,r.sH)(void 0,void 0,void 0,(function(){var n;return(0,r.YH)(this,(function(i){return n=function(i){return(0,r.sH)(void 0,void 0,void 0,(function(){var o;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return e(i)?(o=n,[4,t()]):[3,2];case 1:return[2,o.apply(void 0,[r.sent()])];case 2:return[2]}}))}))},[2,n(void 0)]}))}))}},9456:(e,t,n)=>{"use strict";n.d(t,{I2:()=>s,YM:()=>c,qQ:()=>a});var r,i=n(472),o=/(https:\/\/.*)\/analytics\.js\/v1\/(?:.*?)\/(?:platform|analytics.*)?/,a=function(e){var t=(0,i.kJ)();t&&(t._cdn=e),r=e},s=function(){var e,t=null!=r?r:null===(e=(0,i.kJ)())||void 0===e?void 0:e._cdn;if(t)return t;var n,a=(Array.prototype.slice.call(document.querySelectorAll("script")).forEach((function(e){var t,r=null!==(t=e.getAttribute("src"))&&void 0!==t?t:"",i=o.exec(r);i&&i[1]&&(n=i[1])})),n);return a||"https://cdn.segment.com"},c=function(){var e=s();return"".concat(e,"/next-integrations")}},5881:(e,t,n)=>{"use strict";n.d(t,{x:()=>p});var r=n(1635),i=n(6115),o=n(7977),a=n(9839),s={getItem:function(){},setItem:function(){},removeItem:function(){}};try{s=(0,a.B)()&&window.localStorage?window.localStorage:s}catch(e){console.warn("Unable to access localStorage",e)}function c(e){var t=s.getItem(e);return(t?JSON.parse(t):[]).map((function(e){return new o.o(e.event,e.id)}))}function u(e){var t=s.getItem(e);return t?JSON.parse(t):{}}function l(e){s.removeItem(e)}function d(e,t,n){void 0===n&&(n=0);var r="persisted-queue:v1:".concat(e,":lock"),i=s.getItem(r),o=i?JSON.parse(i):null,a=null===o||function(e){return(new Date).getTime()>e}(o);if(a)return s.setItem(r,JSON.stringify((new Date).getTime()+50)),t(),void s.removeItem(r);!a&&n<3?setTimeout((function(){d(e,t,n+1)}),50):console.error("Unable to retrieve lock")}var p=function(e){function t(t,n){var i=e.call(this,t,[])||this,o="persisted-queue:v1:".concat(n,":items"),a="persisted-queue:v1:".concat(n,":seen"),p=[],f={};return d(n,(function(){try{p=c(o),f=u(a),l(o),l(a),i.queue=(0,r.fX)((0,r.fX)([],p,!0),i.queue,!0),i.seen=(0,r.Cl)((0,r.Cl)({},f),i.seen)}catch(e){console.error(e)}})),window.addEventListener("pagehide",(function(){if(i.todo>0){var e=(0,r.fX)((0,r.fX)([],i.queue,!0),i.future,!0);try{d(n,(function(){!function(e,t){var n=c(e),i=(0,r.fX)((0,r.fX)([],t,!0),n,!0).reduce((function(e,t){var n;return(0,r.Cl)((0,r.Cl)({},e),((n={})[t.id]=t,n))}),{});s.setItem(e,JSON.stringify(Object.values(i)))}(o,e),function(e,t){var n=u(e);s.setItem(e,JSON.stringify((0,r.Cl)((0,r.Cl)({},n),t)))}(a,i.seen)}))}catch(e){console.error(e)}}})),i}return(0,r.C6)(t,e),t}(i.M)},5791:(e,t,n)=>{"use strict";n.d(t,{W:()=>i});var r=n(1476);function i(e,t){var n=new r.Facade(e,t);return"track"===e.type&&(n=new r.Track(e,t)),"identify"===e.type&&(n=new r.Identify(e,t)),"page"===e.type&&(n=new r.Page(e,t)),"alias"===e.type&&(n=new r.Alias(e,t)),"group"===e.type&&(n=new r.Group(e,t)),"screen"===e.type&&(n=new r.Screen(e,t)),Object.defineProperty(n,"obj",{value:e,writable:!0}),n}},1298:(e,t,n)=>{"use strict";n.d(t,{X:()=>i});var r="npm";function i(){return r}},365:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LegacyDestination:()=>A,ajsDestinations:()=>E});var r=n(1635),i=n(1476),o=n(7718),a=n(7977),s=n(9952),c=n(9839),u=n(4980),l=n(9364),d=n(1094),p=n(2613),f=n(6115),h=n(5881),v=n(5939),y=n(9456),m=n(3357);function g(e){return e.toLowerCase().replace(".","").replace(/\s+/g,"-")}function _(e,t){return void 0===t&&(t=!1),t?btoa(e).replace(/=/g,""):void 0}function b(e,t,n,i){return(0,r.sH)(this,void 0,void 0,(function(){var o,a,s,c,u,l;return(0,r.YH)(this,(function(d){switch(d.label){case 0:o=g(t),a=_(o,i),s=(0,y.YM)(),c="".concat(s,"/integrations/").concat(null!=a?a:o,"/").concat(n,"/").concat(null!=a?a:o,".dynamic.js.gz"),d.label=1;case 1:return d.trys.push([1,3,,4]),[4,(0,m.k)(c)];case 2:return d.sent(),function(e,t,n){var i,o;try{var a=(null!==(o=null===(i=null===window||void 0===window?void 0:window.performance)||void 0===i?void 0:i.getEntriesByName(e,"resource"))&&void 0!==o?o:[])[0];a&&t.stats.gauge("legacy_destination_time",Math.round(a.duration),(0,r.fX)([n],a.duration<100?["cached"]:[],!0))}catch(e){}}(c,e,t),[3,4];case 3:throw u=d.sent(),e.stats.gauge("legacy_destination_time",-1,["plugin:".concat(t),"failed"]),u;case 4:return l=window["".concat(o,"Deps")],[4,Promise.all(l.map((function(e){return(0,m.k)(s+e+".gz")})))];case 5:return d.sent(),window["".concat(o,"Loader")](),[2,window["".concat(o,"Integration")]]}}))}))}var w=n(2321),k=function(e,t){var n,r=t.type,i=t.bundlingStatus,o=t.versionSettings,a="unbundled"!==i&&("browser"===r||(null===(n=null==o?void 0:o.componentTypes)||void 0===n?void 0:n.includes("browser")));return!e.startsWith("Segment")&&"Iterable"!==e&&a},S=function(e,t){var n=!1===t.All&&void 0===t[e];return!1===t[e]||n},T=n(4757),x=n(6251);function N(e,t){return(0,r.sH)(this,void 0,void 0,(function(){var n,i=this;return(0,r.YH)(this,(function(s){switch(s.label){case 0:return n=[],(0,o.a)()?[2,t]:[4,(0,p._)((function(){return t.length>0&&(0,o.s)()}),(function(){return(0,r.sH)(i,void 0,void 0,(function(){var i;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return(i=t.pop())?[4,(0,u.C)(i,e)]:[2];case 1:return r.sent()instanceof a.o||n.push(i),[2]}}))}))}))];case 1:return s.sent(),n.map((function(e){return t.pushWithBackoff(e)})),[2,t]}}))}))}var A=function(){function e(e,t,n,i,o,a){void 0===i&&(i={});var s=this;this.options={},this.type="destination",this.middleware=[],this.initializePromise=(0,x.u)(),this.flushing=!1,this.name=e,this.version=t,this.settings=(0,r.Cl)({},i),this.disableAutoISOConversion=o.disableAutoISOConversion||!1,this.integrationSource=a,this.settings.type&&"browser"===this.settings.type&&delete this.settings.type,this.initializePromise.promise.then((function(e){return s._initialized=e}),(function(){})),this.options=o,this.buffer=o.disableClientPersistence?new f.M(4,[]):new h.x(4,"".concat(n,":dest-").concat(e)),this.scheduleFlush()}return e.prototype.isLoaded=function(){return!!this._ready},e.prototype.ready=function(){var e=this;return this.initializePromise.promise.then((function(){var t;return null!==(t=e.onReady)&&void 0!==t?t:Promise.resolve()}))},e.prototype.load=function(e,t){var n;return(0,r.sH)(this,void 0,void 0,(function(){var i,o,a=this;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return this._ready||void 0!==this.onReady?[2]:null===(n=this.integrationSource)||void 0===n?[3,1]:(o=n,[3,3]);case 1:return[4,b(e,this.name,this.version,this.options.obfuscate)];case 2:o=r.sent(),r.label=3;case 3:i=o,this.integration=function(e,t,n){var r;"Integration"in e?(e({user:function(){return n.user()},addIntegration:function(){}}),r=e.Integration):r=e;var i=new r(t);return i.analytics=n,i}(i,this.settings,t),this.onReady=new Promise((function(e){a.integration.once("ready",(function(){a._ready=!0,e(!0)}))})),this.integration.on("initialize",(function(){a.initializePromise.resolve(!0)}));try{(0,T.y)(e,{integrationName:this.name,methodName:"initialize",type:"classic"}),this.integration.initialize()}catch(t){throw(0,T.y)(e,{integrationName:this.name,methodName:"initialize",type:"classic",didError:!0}),this.initializePromise.resolve(!1),t}return[2]}}))}))},e.prototype.unload=function(e,t){return function(e,t,n){return(0,r.sH)(this,void 0,void 0,(function(){var i,o,a,s;return(0,r.YH)(this,(function(r){return i=(0,y.YM)(),o=g(e),a=_(e,n),s="".concat(i,"/integrations/").concat(null!=a?a:o,"/").concat(t,"/").concat(null!=a?a:o,".dynamic.js.gz"),[2,(0,m.d)(s)]}))}))}(this.name,this.version,this.options.obfuscate)},e.prototype.addMiddleware=function(){for(var e,t=[],n=0;n0&&this.scheduleFlush(),[2]}}))}))}),5e3*Math.random())},e}();function E(e,t,n,i,o,a){var s,u;if(void 0===n&&(n={}),void 0===i&&(i={}),(0,c.S)())return[];t.plan&&((i=null!=i?i:{}).plan=t.plan);var l=null!==(u=null===(s=t.middlewareSettings)||void 0===s?void 0:s.routingRules)&&void 0!==u?u:[],p=t.integrations,f=i.integrations,h=(0,d.J)(t,null!=i?i:{}),v=null==a?void 0:a.reduce((function(e,t){var n;return(0,r.Cl)((0,r.Cl)({},e),((n={})[function(e){return("Integration"in e?e.Integration:e).prototype.name}(t)]=t,n))}),{}),y=new Set((0,r.fX)((0,r.fX)([],Object.keys(p).filter((function(e){return k(e,p[e])})),!0),Object.keys(v||{}).filter((function(e){return(0,w.Qd)(p[e])||(0,w.Qd)(null==f?void 0:f[e])})),!0));return Array.from(y).filter((function(e){return!S(e,n)})).map((function(t){var n=function(e){var t,n,r,i;return null!==(i=null!==(n=null===(t=null==e?void 0:e.versionSettings)||void 0===t?void 0:t.override)&&void 0!==n?n:null===(r=null==e?void 0:e.versionSettings)||void 0===r?void 0:r.version)&&void 0!==i?i:"latest"}(p[t]),r=new A(t,n,e,h[t],i,null==v?void 0:v[t]);return l.filter((function(e){return e.destinationName===t})).length>0&&o&&r.addMiddleware(o),r}))}},4503:(e,t,n)=>{"use strict";n.r(t),n.d(t,{loadLegacyVideoPlugins:()=>i});var r=n(1635);function i(e){return(0,r.sH)(this,void 0,void 0,(function(){var t;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return[4,Promise.resolve().then(n.t.bind(n,572,23))];case 1:return t=r.sent(),e._plugins=t,[2]}}))}))}},5939:(e,t,n)=>{"use strict";n.r(t),n.d(t,{applyDestinationMiddleware:()=>a,sourceMiddlewarePlugin:()=>s});var r=n(1635),i=n(9952),o=n(5791);function a(e,t,n){return(0,r.sH)(this,void 0,void 0,(function(){function i(t,n){return(0,r.sH)(this,void 0,void 0,(function(){var i,a,s;return(0,r.YH)(this,(function(c){switch(c.label){case 0:return i=!1,a=null,[4,n({payload:(0,o.W)(t,{clone:!0,traverse:!1}),integration:e,next:function(e){i=!0,null===e&&(a=null),e&&(a=e.obj)}})];case 1:return c.sent(),i||null===a||(a.integrations=(0,r.Cl)((0,r.Cl)({},t.integrations),((s={})[e]=!1,s))),[2,a]}}))}))}var a,s,c,u,l;return(0,r.YH)(this,(function(e){switch(e.label){case 0:a=(0,o.W)(t,{clone:!0,traverse:!1}).rawEvent(),s=0,c=n,e.label=1;case 1:return s{"use strict";n.r(t),n.d(t,{remoteMiddlewares:()=>s});var r=n(1635),i=n(9839),o=n(3357),a=n(9456);function s(e,t,n){var s;return(0,r.sH)(this,void 0,void 0,(function(){var c,u,l,d,p=this;return(0,r.YH)(this,(function(f){switch(f.label){case 0:return(0,i.S)()?[2,[]]:(c=(0,a.YM)(),u=null!==(s=t.enabledMiddleware)&&void 0!==s?s:{},l=Object.entries(u).filter((function(e){return e[0],e[1]})).map((function(e){return e[0]})),d=l.map((function(t){return(0,r.sH)(p,void 0,void 0,(function(){var i,a,s,u;return(0,r.YH)(this,(function(r){switch(r.label){case 0:i=t.replace("@segment/",""),a=i,n&&(a=btoa(i).replace(/=/g,"")),s="".concat(c,"/middleware/").concat(a,"/latest/").concat(a,".js.gz"),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,(0,o.k)(s)];case 2:return r.sent(),[2,window["".concat(i,"Middleware")]];case 3:return u=r.sent(),e.log("error",u),e.stats.increment("failed_remote_middleware"),[3,4];case 4:return[2]}}))}))})),[4,Promise.all(d)]);case 1:return[2,f.sent().filter(Boolean)]}}))}))}},6834:(e,t,n)=>{"use strict";n.r(t),n.d(t,{tsubMiddleware:()=>i});var r=n(3201),i=function(e){return function(t){var n=t.payload,i=t.integration,o=t.next;new r.Store(e).getRulesByDestinationName(i).forEach((function(e){for(var t=e.matchers,i=e.transformers,a=0;a{"use strict";n.r(t),n.d(t,{schemaFilter:()=>o});var r=n(1635),i=n(9364);function o(e,t){function n(n){var o=e,a=n.event.event;if(o&&a){var s=o[a];if(!(0,i.j)(o,s))return n.updateEvent("integrations",(0,r.Cl)((0,r.Cl)({},n.event.integrations),{All:!1,"Segment.io":!0})),n;var c=function(e,t){var n,r;if(!e||!Object.keys(e))return{};var i=e.integrations?Object.keys(e.integrations).filter((function(t){return!1===e.integrations[t]})):[],o=[];return(null!==(n=t.remotePlugins)&&void 0!==n?n:[]).forEach((function(e){i.forEach((function(t){e.creationName==t&&o.push(e.name)}))})),(null!==(r=t.remotePlugins)&&void 0!==r?r:[]).reduce((function(e,t){return t.settings.subscriptions&&o.includes(t.name)&&t.settings.subscriptions.forEach((function(n){return e["".concat(t.name," ").concat(n.partnerAction)]=!1})),e}),{})}(s,t);n.updateEvent("integrations",(0,r.Cl)((0,r.Cl)((0,r.Cl)({},n.event.integrations),null==s?void 0:s.integrations),c))}return n}return{name:"Schema Filter",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},type:"before",page:n,alias:n,track:n,identify:n,group:n}}},3201:e=>{"use strict";self,e.exports=function(){var e={2870:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Store=t.matches=t.transform=void 0;var i=n(4303);Object.defineProperty(t,"transform",{enumerable:!0,get:function(){return r(i).default}});var o=n(2370);Object.defineProperty(t,"matches",{enumerable:!0,get:function(){return r(o).default}});var a=n(1444);Object.defineProperty(t,"Store",{enumerable:!0,get:function(){return r(a).default}})},2370:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(7843));function o(e,t){if(!Array.isArray(e))return!0===a(e,t);var n,r,i,l,d=e[0];switch(d){case"!":return!o(e[1],t);case"or":for(var p=1;p":case">=":return function(e,t,n,r){if(s(e)&&(e=o(e,r)),s(t)&&(t=o(t,r)),"number"!=typeof e||"number"!=typeof t)return!1;switch(n){case"<=":return e<=t;case">=":return e>=t;case"<":return e":return e>t;default:throw new Error("Invalid operator in compareNumbers: ".concat(n))}}(a(e[1],t),a(e[2],t),d,t);case"in":return function(e,t,n){return void 0!==t.find((function(t){return a(t,n)===e}))}(a(e[1],t),a(e[2],t),t);case"contains":return i=a(e[1],t),l=a(e[2],t),"string"==typeof i&&"string"==typeof l&&-1!==i.indexOf(l);case"match":return n=a(e[1],t),r=a(e[2],t),"string"==typeof n&&"string"==typeof r&&function(e,t){var n,r;e:for(;e.length>0;){var i,o;if(i=(n=c(e)).star,o=n.chunk,e=n.pattern,i&&""===o)return!0;var a=u(o,t),s=a.t,l=a.ok,d=a.err;if(d)return!1;if(!l||!(0===s.length||e.length>0)){if(i)for(var p=0;p0)continue;t=s;continue e}if(d)return!1}return!1}t=s}return 0===t.length}(r,n);case"lowercase":var f=a(e[1],t);return"string"!=typeof f?null:f.toLowerCase();case"typeof":return typeof a(e[1],t);case"length":return function(e){return null===e?0:Array.isArray(e)||"string"==typeof e?e.length:NaN}(a(e[1],t));default:throw new Error("FQL IR could not evaluate for token: ".concat(d))}}function a(e,t){return Array.isArray(e)?e:"object"==typeof e?e.value:(0,i.default)(t,e)}function s(e){return!!Array.isArray(e)&&(("lowercase"===e[0]||"length"===e[0]||"typeof"===e[0])&&2===e.length||("contains"===e[0]||"match"===e[0])&&3===e.length)}function c(e){for(var t={star:!1,chunk:"",pattern:""};e.length>0&&"*"===e[0];)e=e.slice(1),t.star=!0;var n,r=!1;e:for(n=0;n0;){if(0===t.length)return i;switch(e[0]){case"[":var o=t[0];t=t.slice(1);var a=!0;(e=e.slice(1)).length>0&&"^"===e[0]&&(a=!1,e=e.slice(1));for(var s=!1,c=0;;){if(e.length>0&&"]"===e[0]&&c>0){e=e.slice(1);break}var u,d="";if(u=(n=l(e)).char,e=n.newChunk,n.err)return i;if(d=u,"-"===e[0]&&(d=(r=l(e.slice(1))).char,e=r.newChunk,r.err))return i;u<=o&&o<=d&&(s=!0),c++}if(s!==a)return i;break;case"?":t=t.slice(1),e=e.slice(1);break;case"\\":if(0===(e=e.slice(1)).length)return i.err=!0,i;default:if(e[0]!==t[0])return i;t=t.slice(1),e=e.slice(1)}}return i.t=t,i.ok=!0,i.err=!1,i}function l(e){var t={char:"",newChunk:"",err:!1};return 0===e.length||"-"===e[0]||"]"===e[0]||"\\"===e[0]&&0===(e=e.slice(1)).length?(t.err=!0,t):(t.char=e[0],t.newChunk=e.slice(1),0===t.newChunk.length&&(t.err=!0),t)}t.default=function(e,t){if(!t)throw new Error("No matcher supplied!");switch(t.type){case"all":return!0;case"fql":return function(e,t){if(!e)return!1;try{e=JSON.parse(e)}catch(t){throw new Error('Failed to JSON.parse FQL intermediate representation "'.concat(e,'": ').concat(t))}var n=o(e,t);return"boolean"==typeof n&&n}(t.ir,e);default:throw new Error("Matcher of type ".concat(t.type," unsupported."))}}},1444:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this.rules=[],this.rules=e||[]}return e.prototype.getRulesByDestinationName=function(e){for(var t=[],n=0,r=this.rules;n1?(a.pop(),u=(0,o.default)(n,a.join("."))):u=e,"object"==typeof u){if(i.copy){var l=(0,o.default)(n,i.copy);void 0!==l&&(0,s.dset)(e,r,l)}else if(i.move){var d=(0,o.default)(n,i.move);void 0!==d&&(0,s.dset)(e,r,d),(0,c.unset)(e,i.move)}else i.hasOwnProperty("set")&&(0,s.dset)(e,r,i.set);if(i.to_string){var p=(0,o.default)(e,r);if("string"==typeof p||"object"==typeof p&&null!==p)continue;void 0!==p?(0,s.dset)(e,r,JSON.stringify(p)):(0,s.dset)(e,r,"undefined")}}}}function f(e,t){return!(t.sample.percent<=0)&&(t.sample.percent>=1||(t.sample.path?function(e,t){var n=(0,o.default)(e,t.sample.path),r=(0,i.default)(JSON.stringify(n)),s=-64,c=[];h(r.slice(0,8),c);for(var u=0,l=0;l<64&&1!==c[l];l++)u++;if(0!==u){var d=[];h(r.slice(9,16),d),s-=u,c.splice(0,u),d.splice(64-u),c=c.concat(d)}return c[63]=0===c[63]?1:0,(0,a.default)(parseInt(c.join(""),2),s)=1;i/=2)r-i>=0?(r-=i,t.push(1)):t.push(0)}t.default=function(e,t){for(var n=e,r=0,i=t;ra?e<0?i:r:(t<=s?(t+=52,g=2220446049250313e-31):g=1,h(m,e),n=m[0],n&=2148532223,g*v(n|=t+o<<20,m[1])))}},4772:function(e,t,n){var r=n(7548);e.exports=r},7548:function(e){e.exports=Number},8478:function(e,t,n){var r=n(4500);e.exports=r},4500:function(e,t,n){var r=n(1921),i=n(3105),o=n(6315);e.exports=function(e){var t=r(e);return(t=(t&i)>>>20)-o|0}},2490:function(e,t,n){var r=n(9639);e.exports=r},4445:function(e,t,n){var r,i,o;!0===n(5902)?(i=1,o=0):(i=0,o=1),r={HIGH:i,LOW:o},e.exports=r},9639:function(e,t,n){var r=n(4773),i=n(7382),o=n(4445),a=new i(1),s=new r(a.buffer),c=o.HIGH,u=o.LOW;e.exports=function(e,t){return s[c]=e,s[u]=t,a[0]}},5646:function(e,t,n){var r;r=!0===n(5902)?1:0,e.exports=r},1921:function(e,t,n){var r=n(6285);e.exports=r},6285:function(e,t,n){var r=n(4773),i=n(7382),o=n(5646),a=new i(1),s=new r(a.buffer);e.exports=function(e){return a[0]=e,s[o]}},9024:function(e,t,n){var r=n(6488),i=n(7011),o=n(1883),a=n(513);e.exports=function(e,t,n,s){return o(e)||i(e)?(t[s]=e,t[s+n]=0,t):0!==e&&a(e)>2]|=c.charCodeAt(u)<<8*u--;for(i=c=0;i>4]+r[c]+~~s[i|15&[c,5*c+1,3*c+5,7*c][u]])<<(u=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*u+c++%4])|o>>>-u),t,n])t=0|u[1],n=u[2];for(c=4;c;)a[--c]+=u[c]}for(e="";c<32;)e+=(a[c>>3]>>4*(1^c++)&15).toString(16);return e}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}return n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(2870)}()},3418:(e,t,n)=>{"use strict";var r=n(5783),i=n(8836)("dataLayer",{wrap:!1}),o=e.exports=r("Google Tag Manager").global("dataLayer").global("google_tag_manager").option("containerId","").option("environment","").option("trackNamedPages",!0).option("trackCategorizedPages",!0).tag("no-env",'